package com.xkdx.guangguang.fragment.my.setup;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.content.Context;

import com.xkdx.caipiao.R;
import com.xkdx.guangguang.module.network.AbsAction;

public class UpdateVerisonAction extends AbsAction {
	Context context;

	public UpdateVerisonAction(Context context) {
		this.context = context;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("DeviceID", "2");
		map.put("ClientVersion", context.getResources().getString(R.string.version_update_time));
		String json = constructJson(map);

		Parameter parameter = new Parameter("systemInterface", "checkUpdate", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}

}
